﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace MO
{
    public class FormItem
    {
        public string Code;
        public string Name;
        public string FormCode;
        public string FieldCode;
        public string Description;
        public string ControlType;
        public string CheckCondition;
        public int Order;
        public string ControlSources;
        public object ControlData;
        public string ControlConfig;
        public object DefaultValue;
        public FormItem(DataRow row)
        {
            this.Code = row["FI_Code"].ToString();
            this.Name = row["FI_Name"].ToString();
            this.Description = row["FI_Description"] as string;
            this.FormCode = row["Form_Code"].ToString();
            this.FieldCode = row["FD_Code"] as string;
            this.ControlType = row["FI_Control_Type"] as string;
            this.CheckCondition = row["FI_Check_Condition"] as string;
            this.Order = Convert.ToInt32(row["FI_Order"]);
            this.ControlSources = row["FI_Control_Sources"] as string;
            this.DefaultValue = row["FI_Default_Value"];
            this.ControlConfig = row["FI_Control_Config"] as string;
        }
    }
}
